import http from "../http/axios"
const one = (id) => {
    return http(`/mall/oms-order-return-reason/one/${id}`)
}
const modify_post = (id, name) => {
    return http("/mall/oms-order-return-reason/edit", {
        method: "post",
        data: {
            id,
            name
        }
    })
}
const del = (id) => {
    return http(`/mall/oms-order-return-reason/del/${id}`)
}

const add = (v) => {
    const { createTime, id, name, sort, status } = v
    console.log('====================================');
    console.log(createTime);
    console.log('====================================');
    return http('/mall/oms-order-return-reason/add', {
        method: 'post',
        data: {
            createTime,
            id,
            name,
            sort,
            status,
        }
    })
}
export { one, modify_post, del, add }